import {NavigatorRoutePage, NavigatorRouteType} from "plain-micro-application";
import {MicroNavigatorWindow} from "plain-micro-application";

/**
 * 全屏打开页面，page路由，通过缓存获取页面信息
 * @author  韦胜健
 * @date    2021/4/22 14:50
 */
export function getPageRoutePage(): NavigatorRoutePage {
    const {path, param, security, title} = MicroNavigatorWindow.get()
    return {
        url: '',
        route: {
            type: NavigatorRouteType.page,
            security: security,
            path,
            title,
            route: '',
            routeKeys: [],
            routePatten: /-/,
        },
        isExact: true,
        params: param,
        query: {},
    }
}